//
//  KeyChain.h
//  iOSBaseFramework
//
//  Created by user on 2020/6/17.
//  Copyright © 2020 com.taylor. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TRKeyChain : NSObject

@property (strong, nonatomic) NSMutableDictionary *viewControllerDic;

+ (instancetype)shareManage;
+ (BOOL)validUsedIntValue:(NSString *)value;

/**
 * 避免汉字乱码进行GBK2312乱码
 *
 * @param source source description
 *
 * @param return value description
 */
+ (NSString *)stringWithGBK2312:(NSString *)source;


/**
 *  判断是否包含汉字
 *
 *  @param source source description
 *
 *  @return return value description
 */
+ (BOOL)isContainMandarin:(NSString *)str;


- (void)saveUserToken:(NSString *)token;
- (NSString *)getUserToken;
- (void) showMessage:(NSString *)message withSuperView:(UIView *)superView;

@end

NS_ASSUME_NONNULL_END
